home *** CD-ROM | disk | FTP | other *** search
/ New Perspectives on Computer Concepts / New Perspectives on Computer Concepts.iso / np2010c / page762.pag < prev    next >
Portable Network Graphic  |  2008-10-02  |  82KB  |  817x1045  |  8-bit (256 colors)
Labels: chat room | crt screen | hakham | monitor | sky
OCR: 694 SECTION CHAPTER 1.2 How do Iknow if my algorithm is correct? Before finalizing the algorithm for computer program, you should perform walkthrough to verify that your algorithm works. To perform walkthrough for a simple pro- gram, you can use calculator, paper, and pencil to step through a sample problem using realistic test data For more complex programs walkthrough might consist of a verbal presentation to group of programmers who can help identify logical errors in the algorithm and suggest ways to make the algorithm more efficient. Figure 12-24 illustrates how to check the pseudocode for the FIGURE 12-24 pizza program Pseudocode Walkthrough User asked to enter the first display prompts for entering shape price and size pizza's shape price, and size input Shape1 Price1 Size1 User ent ...